<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('单位待查确认明细查询列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li class="select-time">
                                <label>确认日期：</label>
                                <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginQrDate]"/>
                                <span>-</span>
                                <input type="text" class="time-input" id="endTime" placeholder="结束时间" name="params[endQrDate]"/>
                            </li>
                            <li>
                                <label>票据号：</label>
                                <input type="text" name="pjh"/>
                            </li>
                            <li>
                                <input type="hidden" name="qrlsh" th:value="${qrlsh}"/>
                            </li>
                            <li style="width:265px">
                                <label>单位编码：</label> 
				                    <div class="input-group"> 
				                        <input class="form-control" type="text" ondblclick="selectHsdwTree()" id="dwbm" name="dwbm">
				                        <span class="input-group-addon"><i class="fa fa-search" onclick="selectHsdwTree()"></i></span>
				                    </div> 
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
               
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:dcjtmx:mxexport">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/dcjtmx";
        
        
        /*核算单位-新增-选择父部门树*/
        function selectHsdwTree() {
            var options = {
                title: '核算单位选择',
                width: "380",
                url: ctx + "system/hsdw/selectHsdwTree/",
                callBack: dohsdwSubmit
            };
            $.modal.openOptions(options);
        }

        function dohsdwSubmit(index, layero){
            var body = layer.getChildFrame('body', index);
               $("#dwbm").val(body.find('#treeId').val());
               layer.close(index);
        }

        $(function() {
            var options = {
                url: prefix + "/listmx",
                mxexportUrl: prefix + "/mxexport",
                modalName: "单位待查确认明细查询",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'lsh',
                    title: '流水号'
                },
                {
                    field: 'dwbm',
                    title: '单位编码'
                },
                {
                    field: 'dwmc',
                    title: '单位名称'
                },
                {
                    field: 'income',
                    title: '收入金额'
                },
                {
                    field: 'yskm',
                    title: '预算科目代码(到目级)'
                },
                {
                    field: 'yskmmc',
                    title: '预算科目名称(到目级)'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    field: 'receiveDate',
                    title: '收款日期时间'
                },
                {
                    field: 'qrDate',
                    title: '确认日期'
                },
                {
                    field: 'pztxh',
                    title: '凭证头序号'
                },
                {
                    field: 'xh',
                    title: '凭证体序号'
                },
                {
                    field: 'xmbm',
                    title: '项目编码'
                },
                {
                    field: 'xmmc',
                    title: '项目名称'
                },
                {
                    field: 'pjh',
                    title: '票据号'
                },
                {
                    field: 'jkr',
                    title: '缴款人名称'
                },
                {
                    field: 'jkyhzh',
                    title: '缴款人账号'
                },
                {
                    field: 'jkyhmc',
                    title: '缴款人银行'
                },
                {
                    field: 'skr',
                    title: '收款人名称'
                },
                {
                    field: 'skyhzh',
                    title: '收款人账号'
                },
                {
                    field: 'skyhmc',
                    title: '收款人银行'
                },
                {
                    field: 'skyhbm',
                    title: '收款银行编码'
                },
                {
                    field: 'kmdm',
                    title: '科目代码'
                },
                {
                    field: 'qrlsh',
                    title: '确认流水号',
                	visible: false
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>